import { createApp } from "vue";
import App from "./App.vue";
import router from "@/router";
import { setupStore } from "@/store";
import { setupDirective } from "@/directive";
import other from "@/utils/other";

import "@/permission";

// 本地SVG图标
import "virtual:svg-icons-register";

// 新增代码：引入全部组件及样式
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";

// 引入样式
// import "element-plus/theme-chalk/dark/css-vars.css";
import "@/styles/index.scss";
import "uno.css";

// 引入 t-ui-plus
import TuiPlus from "@wocwin/t-ui-plus";
import "@wocwin/t-ui-plus/lib/style.css";

const app = createApp(App);
setupDirective(app);
setupStore(app);
other.elSvg(app);

app.use(ElementPlus); // 新增代码：注册全部组件
app.use(TuiPlus);
app.use(router);
app.mount("#app");
